.al-switch {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  font-size: 14px;
  line-height: 20px;
  height: 20px;
  vertical-align: middle;
}
.al-switch.is-disabled .al-switch__core,
.al-switch.is-disabled .al-switch__label {
  cursor: not-allowed;
}
.al-switch__core,
.al-switch__label {
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
}
.al-switch__label {
  -webkit-transition: 0.2s;
  transition: 0.2s;
  height: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #303133;
}
.al-switch__label.is-active {
  color: #409eff;
}
.al-switch__label--left {
  margin-right: 10px;
}
.al-switch__label--right {
  margin-left: 10px;
}
.al-switch__label * {
  line-height: 1;
  font-size: 14px;
  display: inline-block;
}
.al-switch__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  margin: 0;
}
.al-switch__core {
  margin: 0;
  position: relative;
  width: 40px;
  height: 20px;
  border: 1px solid #dcdfe6;
  outline: 0;
  border-radius: 10px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: #dcdfe6;
  -webkit-transition: border-color 0.3s, background-color 0.3s;
  transition: border-color 0.3s, background-color 0.3s;
}
.al-switch__core:after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  border-radius: 100%;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 16px;
  height: 16px;
  background-color: #fff;
}
.al-switch.is-checked .al-switch__core {
  border-color: #409eff;
  background-color: #409eff;
}
.al-switch.is-checked .al-switch__core::after {
  left: 100%;
  margin-left: -17px;
}
.al-switch.is-disabled {
  opacity: 0.6;
}
.al-switch--wide .al-switch__label.al-switch__label--left span {
  left: 10px;
}
.al-switch--wide .al-switch__label.al-switch__label--right span {
  right: 10px;
}
.al-switch .label-fade-enter,
.al-switch .label-fade-leave-active {
  opacity: 0;
}
